package epic.domain;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

/**
 * Simple Hero model.
 * 
 * @author Artem Kozlov
 */
@NamedQuery(name = Hero.GET_ALL_HEROS, query = "FROM Hero")
@Entity
public class Hero implements Serializable {
    
    public static final String GET_ALL_HEROS = "GET_ALL_HEROS";

    private static final long serialVersionUID = 2246582014599155729L;

    @Id
    @GeneratedValue
    private Integer id;
    
    @Column(nullable = false)
    private String heroName;
    
    @Enumerated(EnumType.ORDINAL)
    private PathDecision decision;

    public Hero() {
    }

    public Hero(String heroName) {
        this.heroName = heroName;
    }

    public PathDecision getDecision() {
        return decision;
    }

    public void setDecision(PathDecision decision) {
        this.decision = decision;
    }

    public String getHeroName() {
        return heroName;
    }

    public void setHeroName(String heroName) {
        this.heroName = heroName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}
